package com.sourceQ.system.dto.message;

import com.sourceQ.common.core.validation.StringEnum;
import com.sourceQ.common.core.validation.Mobile;
import com.sourceQ.common.sms.core.enums.SmsSceneEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author: SourceQ
 * @create: 2024-04-23 17:27
 * @Description:
 */
@Schema(description = "RPC 服务 - 短信验证码的发送 Request DTO")
@Data
public class SmsCodeSendReqDTO {

    @Schema(description = "手机号", example = "15601691300")
    @Mobile
    @NotEmpty(message = "手机号不能为空")
    private String mobile;

    @Schema(description = "发送场景", example = "1")
    @NotNull(message = "发送场景不能为空")
    @StringEnum(SmsSceneEnum.class)
    private String scene;
    @Schema(description = "发送 IP", example = "10.20.30.40")
    @NotEmpty(message = "发送 IP 不能为空")
    private String createIp;
}
